home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddLLLLoooocccckkkk((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddLLLLoooocccckkkk((((3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- _X_m_C_l_i_p_b_o_a_r_d_L_o_c_k - A clipboard function that locks the
- clipboard
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <Xm/Xm.h>
- #include <Xm/CutPaste.h>
-
- int _X_m_C_l_i_p_b_o_a_r_d_L_o_c_k (ddddiiiissssppppllllaaaayyyy,,,, wwwwiiiinnnnddddoooowwww)
- _D_i_s_p_l_a_y **** ddddiiiissssppppllllaaaayyyy;
- _W_i_n_d_o_w wwwwiiiinnnnddddoooowwww;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _X_m_C_l_i_p_b_o_a_r_d_L_o_c_k locks the clipboard from access by another
- application until _X_m_C_l_i_p_b_o_a_r_d_U_n_l_o_c_k is called. All
- clipboard functions lock and unlock the clipboard to prevent
- simultaneous access. This function allows the application
- to keep the clipboard data from changing between calls to
- _I_n_q_u_i_r_e and other clipboard functions. The application does
- not need to lock the clipboard between calls to
- _X_m_C_l_i_p_b_o_a_r_d_S_t_a_r_t_C_o_p_y and _X_m_C_l_i_p_b_o_a_r_d_E_n_d_C_o_p_y or to
- _X_m_C_l_i_p_b_o_a_r_d_S_t_a_r_t_R_e_t_r_i_e_v_e and _X_m_C_l_i_p_b_o_a_r_d_E_n_d_R_e_t_r_i_e_v_e.
-
- If the clipboard is already locked by another application,
- _X_m_C_l_i_p_b_o_a_r_d_L_o_c_k returns an error status. Multiple calls to
- this function by the same application increases the lock
- level.
-
- ddddiiiissssppppllllaaaayyyy
- Specifies a pointer to the _D_i_s_p_l_a_y structure that was
- returned in a previous call to _X_O_p_e_n_D_i_s_p_l_a_y or
- _X_t_D_i_s_p_l_a_y.
-
- wwwwiiiinnnnddddoooowwww
- Specifies a widget's window ID that relates the
- application window to the clipboard. The widget's
- window ID can be obtained by using _X_t_W_i_n_d_o_w. The same
- application instance should pass the same window ID to
- each of the clipboard functions that it calls.
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- _C_l_i_p_b_o_a_r_d_S_u_c_c_e_s_s
- The function is successful.
-
- _C_l_i_p_b_o_a_r_d_L_o_c_k_e_d
- The function failed because the clipboard was locked by
- another application. The application can continue to
- call the function again with the same parameters until
- the lock goes away. This gives the application the
- opportunity to ask if the user wants to keep trying or
- to give up on the operation.
-
-
-
-
- Page 1 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddLLLLoooocccckkkk((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddLLLLoooocccckkkk((((3333XXXX))))
-
-
-
- RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
- _X_m_C_l_i_p_b_o_a_r_d_E_n_d_C_o_p_y(_3_X), _X_m_C_l_i_p_b_o_a_r_d_E_n_d_R_e_t_r_i_e_v_e(_3_X),
- _X_m_C_l_i_p_b_o_a_r_d_S_t_a_r_t_C_o_p_y(_3_X), _X_m_C_l_i_p_b_o_a_r_d_S_t_a_r_t_R_e_t_r_i_e_v_e(_3_X), and
- _X_m_C_l_i_p_b_o_a_r_d_U_n_l_o_c_k(_3_X).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 2 (printed 11/11/03)
-
-
-
-